package test;

import static org.junit.Assert.assertNotNull;
import static org.mockito.Mockito.mock;

import java.util.List;

import javax.ejb.EJB;
import javax.persistence.EntityManager;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import entity.Event;
import entity.OutdoorEvent;
import entity.User;
import control.InvitationManager;
import control.UserManager;

@RunWith(Arquillian.class)
public class InvitationManagerIT {
	
	@EJB
	private InvitationManager im;
	@EJB
	private UserManager um;
	
	private User user;
	private String username = "dade2";
		
    
    @Test
    public void invitationManagerShouldBeInitialized() {
    	 assertNotNull(im);
    }
    
    @Test
    public void userManagerShouldBeInitialized() {
    	assertNotNull(um);
    }
    
    @Test
    public void invitationManagerShouldCreateInvitations() {
    	
    }
    
    @Test
    public void invitationManagerShouldLoadInvitations() {
    	List<OutdoorEvent> events=im.loadInvitedOutdoorEvents(user);
    	assertNotNull(events);
    }

}
